package controller.action;

import model.service.EPService;

import com.opensymphony.xwork2.ActionSupport;

public class epAction extends ActionSupport{
	private String result;
	private EPService EPService;
	private String pageNum;
	private String Info;
	
	public void setPageNum(String pageNum) {
		this.pageNum = pageNum;
	}
	public void setEPService(EPService ePService) {
		EPService = ePService;
	}
	public void setInfo(String info) {
		Info = info;
	}
	public String getList(){
		result = EPService.getList(pageNum);
		return SUCCESS;
	}
	
	public String getResult() {
		return result;
	}
	public String getProvince()
	{
		result = EPService.getProvince();
		return SUCCESS;
	}
	public String add()
	{
		result = EPService.add(Info);
		return SUCCESS;
	}
	public String modify()
	{
		result  = EPService.modify(Info);
		return SUCCESS;
	}
	public String delete()
	{
		result = EPService.deleteAll(Info);
		return SUCCESS;
	}
	public String query()
	{
		result = EPService.query(Info);
		return SUCCESS;
	}

}
